package com.hpeng.tml.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Component;

import com.hpeng.sys.model.Department;
import com.hpeng.tml.dao.DepartmentDao;
import com.hpeng.tml.service.DepartmentDwr;

@Component("departmentDwr")
public class DepartmentDwrImpl implements DepartmentDwr{
	@Resource
	private DepartmentDao deptDao;
	
	public List<Department> getAllDepartment() {
		return deptDao.getAll();
	}

	public void setDeptDao(DepartmentDao deptDao) {
		this.deptDao = deptDao;
	}
}
